package com.qfedu.edu.stockservice.service;

import com.qfedu.edu.po.StockStorage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaobobo
 * @since 2024-11-06
 */
public interface StockStorageService extends IService<StockStorage> {
    /**
     * 添加库存
     * @param classId
     * @param count
     */
    int addStock(String classId, Integer count);

    /**
     * 减库存的逻辑
     * @param queueMessage
     */
    void reduce(String queueMessage);
}
